package com.example.demothree.dao;

import com.example.demothree.bean.Employee;
import com.example.demothree.bean.Managers;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface ManagersDao extends JpaRepository<Managers,Long> {
    @Query("from Managers where name=?1")
    public Managers findName(String username);
    @Query("from Managers where id=?1")
    public Managers findBy(Long id);


}
